#ifndef _UTILS_OBJTYPE_H_
#define _UTILS_OBJTYPE_H_

#include <tcutil.h>
#include <tcfdb.h>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/date_time/gregorian/gregorian.hpp>


#define OBJTIME_NAME_LEN	24
#define UTILS_BUFLEN_MAX 	512
#define UTILS_WEEK_LEN 	7



typedef struct
{ 
	boost::gregorian::date startdata;
	boost::posix_time::time_duration starttime;
	boost::gregorian::date stopdata;
	boost::posix_time::time_duration stoptime;

}time_range_t;

typedef struct{
	int id;
	time_range_t once;
}objtime_once_t;

typedef struct
{ 
	int id;
	int week_enable[7];
	time_range_t week[7];
}objtime_week_t;


typedef struct{
	int id;
}utils_once_key;

typedef struct{
    time_range_t once;
}utils_once_value;

typedef struct{
	int id;
}utils_week_key;

typedef struct{
    int week_enable[7];
	time_range_t week[7];
}utils_week_value;


#endif



